package com.example.hello.client.Dropdown;

import com.vaadin.shared.AbstractComponentState;
import com.vaadin.shared.Connector;

import java.util.LinkedList;
import java.util.List;

public class BootstrapDropdownState extends AbstractComponentState {

    private List<Connector> navs = new LinkedList<Connector>();

    private String baseIcon;
    private boolean dropup = false;
    private String icon;
    private String iconPosition = "LEFT";
    private String iconSize = "DEFAULT";
    private boolean rightDropdown = false;
    private String text = "";
    private String type;

    public List<Connector> getNavs() {
        return navs;
    }

    public void setNavs(List<Connector> navs) {
        this.navs = navs;
    }

    public void addNav(Connector nav, int index) {
        navs.add(index, nav);
    }

    public void removeNav(Connector nav) {
        navs.remove(nav);
    }

    public String getBaseIcon() {
        return baseIcon;
    }

    public void setBaseIcon(String baseIcon) {
        this.baseIcon = baseIcon;
    }

    public boolean isDropup() {
        return dropup;
    }

    public void setDropup(boolean dropup) {
        this.dropup = dropup;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getIconPosition() {
        return iconPosition;
    }

    public void setIconPosition(String iconPosition) {
        this.iconPosition = iconPosition;
    }

    public String getIconSize() {
        return iconSize;
    }

    public void setIconSize(String iconSize) {
        this.iconSize = iconSize;
    }

    public boolean isRightDropdown() {
        return rightDropdown;
    }

    public void setRightDropdown(boolean rightDropdown) {
        this.rightDropdown = rightDropdown;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

}